package com.woniuxy.car.commodity.service.core.service.impl;

import com.woniuxy.car.commodity.service.core.entity.Commodity;
import com.woniuxy.car.commodity.service.core.entity.CommodityParam;
import com.woniuxy.car.commodity.service.core.mapper.CommodityParamMapper;
import com.woniuxy.car.commodity.service.core.service.ICommodityParamService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 商品参数表 服务实现类
 * </p>
 *
 * @author awz
 * @since 2022-03-01
 */
@Service
public class CommodityParamServiceImpl extends ServiceImpl<CommodityParamMapper, CommodityParam> implements ICommodityParamService {

    @Autowired(required = false)
    CommodityParamMapper commodityParamMapper;

    @Override
    public CommodityParam findOne(Integer commodityId) {
        return commodityParamMapper.findOneByCommodity(commodityId);
    }
}
